package cn.ainit.sys.print.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Embeddable;


/**
 * SysPrintId entity. @author MyEclipse Persistence Tools
 */
@Embeddable

public class SysPrintId  implements java.io.Serializable {


    // Fields    

     private String dsId;
     private String name;


    // Constructors

    /** default constructor */
    public SysPrintId() {
    }

    
    /** full constructor */
    public SysPrintId(String dsId, String name) {
        this.dsId = dsId;
        this.name = name;
    }

   
    // Property accessors

    @Column(name="DS_ID", nullable=false, length=32)

    public String getDsId() {
        return this.dsId;
    }
    
    public void setDsId(String dsId) {
        this.dsId = dsId;
    }

    @Column(name="NAME", nullable=false, length=50)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof SysPrintId) ) return false;
		 SysPrintId castOther = ( SysPrintId ) other; 
         
		 return ( (this.getDsId()==castOther.getDsId()) || ( this.getDsId()!=null && castOther.getDsId()!=null && this.getDsId().equals(castOther.getDsId()) ) )
 && ( (this.getName()==castOther.getName()) || ( this.getName()!=null && castOther.getName()!=null && this.getName().equals(castOther.getName()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getDsId() == null ? 0 : this.getDsId().hashCode() );
         result = 37 * result + ( getName() == null ? 0 : this.getName().hashCode() );
         return result;
   }   





}